<?php 
global $_W,$_GPC;
include MODULE_ROOT.'/inc/mobile/__init.php';
load()->model('mc');
$id = intval($_GPC['id']);
$sql = "SELECT * FROM ".tablename('imeepos_runner3_tasks')." WHERE id = :id";
$params = array(':id'=>$id);
$order = pdo_fetch($sql,$params);

$uid = mc_openid2uid($order['openid']);
$user = mc_fetch($uid);

$_pjax = trim($_GPC['_pjax']);

$template_content = $template.'/task/detail';

if($_W['isajax']){
	include $this->template($template_content,TEMPLATE_FETCH);
}else{
	include $this->template($template.'/index');
}